package org.aplikator.client.shared.data;

import org.jboss.errai.common.client.api.annotations.Portable;

import java.io.Serializable;

@SuppressWarnings("serial")
@Portable
public class ClientContext implements Serializable {

    private String user;
    private String locale;
    private Record currentRecord;

    public ClientContext() {
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getLocale() {
        return locale;
    }

    public void setLocale(String locale) {
        this.locale = locale;
    }

    public Record getCurrentRecord() {
        return currentRecord;
    }

    public void setCurrentRecord(Record currentRecord) {
        this.currentRecord = currentRecord;
    }

    public ClientContext clone() {
        ClientContext retval = new ClientContext();
        retval.user = user;
        retval.locale = locale;
        retval.currentRecord = currentRecord;
        return retval;
    }
}
